package com.zzjson.thread.condition;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.thread.condition</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年08月21日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class ConditionTest {
	public static void main(String[] args) {
		Lock lock = new ReentrantLock();
		Condition condition = lock.newCondition();
		ConditionAwait conditionAwait = new ConditionAwait(lock, condition);
		ConditionSingle conditionSingle = new ConditionSingle(lock, condition);
		conditionAwait.start();
		conditionSingle.start();
	}

}